package ping

import (
	"go-web-scaffold/api"
	"go-web-scaffold/tws"

	"github.com/gin-gonic/gin"
)

func PingController(engine *gin.Engine, routerManager *tws.RouterManager, instance *api.SqliteDB) {
	routerManager.Register("ping:pong:get", func(ctx *tws.Context) {
		pingpong(ctx)
	})
}

func pingpong(ctx *tws.Context) {
	ctx.Context.JSON(200, gin.H{
		"status": "success",
		"result": "ping pong",
	})
}
